Moving onTap into domReady

This will fix the grid not defined error.