Slight formatting changes to the canvas javascript