Allow selenium to check for javascript errors on the page

Remove foo() that was there for testing