added a "wait" in functest.js to make sure that an element with id="math" is on the page