More jasmine fixes.

Duck typing fail :(