Fix JS for production assets