Fix plugin javascripts for production mode.