some changes in whiteboard.js