Added Jasmine tests. Fixes #10