Fixing minification of javascript on the fly