js/whiteboard/whiteboard.js: add typedefs; fix minor problems found by Closure Compiler
js/whiteboard/whiteboard.js: add typedefs; fix minor problems found by Closure Compiler

ludios/DemosMinerva,ludios/DemosMinerva,ludios/DemosMinerva