Auto-detect production mode, and use the right .js file