PhantomJS update

Clarified a number of declarations. Update to PhantomJS 1.9.0. Some trivial fixes.