install phantomjs and mocha + template test