testing javascript with jasmine