jasmine tests, works in browser