Add support for phantomjs

I have added initial phantomjs support in order to speed up test runs