phantomjs browser tests. fixes #12