Added latest jQuery, amended random number func to be standalone, moved draw grid to view.