added grid and hints to .js file
line