moved some javascript code from the canvas view php file to the view's main js file