Fix jasmine tests breaking in phantomjs