make phantomjs process interruptable

To resolve issue #50