Updated with Jasmine example