some improvements
minified js using Closure Compiler