made browser into class, takes page URL as argument
Methodized all scripts