Merged grid size settings from master
Proper link to cookies.js
Fixes cookie checking
Refactored some redundant variables
Merge pull request #56 from kayvon/style

Style