Update tile.js
Modified to use tickets.
More standard cleanup stuff.
Merge branch 'master' into gh-pages