added jasmine js tests