A Drupal module which provides an API to the PhantomJS is a headless WebKit scriptable binary.