JSLint and minor refactoring
Merge branch 'master' of https://github.com/andrewdamelio/snapGIF