Fix a global scope leak
Fix some jslint errors
Merge pull request #34 from LocalData/cache-fix

Fix S3 caching