Fix order of javascript minifying to work better