Update uglify js and fix encoding issues

Add new version of uglifyjs from uglifier gem and update generated js
code.
Fix issue with tabs in source js causing errors.