updates for latest karma and jasmine
converted client-side tests from coffeescript to javascript