Changed the command for executing JavaScript to run_javascript for twill compatibility
Implemented agent, save_cookies, and load_cookies