Jasmine tests

Preliminary ajax stubbing added