Navigation scripting & testing for PhantomJS and SlimerJS