Remove document.ready duplication and create Gridster class.