Added Jasmine tests for the Javascript