Changes in JS to production mode with more speed