Script Generation for Automated Web Browsing