Hook up doctest.js to phantomjs and travis for CI testing.