update ScriptHelpers and add BasePage