fixed global namespace polution, jshint error
added minified js