jasmine tests for javascript