Resolved problems with JS for production