Added npm test support for phantomjs tests.
Increased nodejs version dependency.