Use google clsoure with compilation_level=SIMPLE_OPTIMIZATIONS to minify js.