Added a production mode for Javascript