PhantomJS

added commented code for headless browser PhantomJS
2nd commit for today

modified some code for PhantomJS