fix js for production