Add main file comment
Fix JSHint warnings
Add a minified version of the script
Fix some syntax and JSHint warnings