Add jasmine for testing JavaScript

Adds [Jasmine 2.0](http://jasmine.github.io/2.0/introduction.html) to allow us to write unit tests for the project JavaScript.

To run the tests:

    grunt test

There's a HTML page (`scripts/test/support/LocalTestRunner.html`) you can use to run the tests in your browser which is useful for debugging.