Using nightwatchjs to automate testing of websites with selenium