Extensive refactoring of both QUnit and Jasmine tests and more logical organisation of project structure