Added Jasmine tests. Closes #2.