JavaScript API for development of Web UI Functional tests