Fixed js to be able to minify