Fixes to the production js