Convert unit tests to Jasmine

This pull request converts all unit tests from JSTestDriver to Jasmine. Currently a work in progress.