fixed some formating issues

added jasmine into the project and also refactored some code formating issues