An introduction to unit testing Javascript code using Jasmine