add html5Mode and some options for phantomJS