Add phantomjs test runner for JavaScript tests.