Simple functional testing for web browsers and PhantomJS