Changed all query strings profile -> goToGrid

Moved the goToGrid function into CG.js file