page object pattern implementation for javascript