Update grid.js

Removed window.onload from the file. This allows for easier use with
other canvas files.