move js to canvas