view.js: Added proper sprite handling with paintEventStack; Implemented 3 ways to call updateView(); Made the Grid display optional with setShowGrid(). index.html: Changed canvas size. nanities.js: Added a clear() to the Array prototype.
index.html: Added a button to toggle grid display. view.js: Grid now only gets painted when grid.show is true; removed obsolete grid.painted condition.