Added Window.add_script to add custom JS scripts.