Bug fixing, added my first Jasmine test