add phantomjs testing and browser-side code coverage