now using jasmine, runs in browser too