Learning Jasmine testing for webapp