Fix javascript in production