Use JSLint

Use JSLint to improve code
Use Closure Compiler

Use Closure Compiler to minify
indentation