correct jasmine script to work