refactored jasmine tests and updated README file