Added jshint, jasmine and the beginnings of some unit tests.