updated to Jasmine syntax
fixed typos