modified JS script