refactoring to use jasmine for testing
forgot a file