Update canvasgame.js