Learning jasmine. Move on to the next chapter refactoring