Fix js for minification