Protractor end-to-end (UI) using page object model, creating and object on the function prototype