Created a Jasmine spec index file to make it obvious where the test suites are.
I tried to change  to use a  with nested yield functions instead of having two separate branches of code, but for reasons unbeknownst to me, this seriously affected performance.
Changed 'npm test' so that it now also runs the Karma tests, and modified the 'npm run test-browser' command so that it keeps the tests running in the background, for those that want that functionality. Also modified the jasmine tests so that they will now fail if an error occurs at any point, preventing the tests from running.