Make it work with jasmine 2 on node and on phantomjs