encapsulated browser in javascript and added a error handling
added google analytic snippet
error template and styling for browser
increased timeout