change js files to be minified without error