modified JS