Minification introducing bugs into JS files