add support for phantomjs
Merge branch 'phantomjs-support'