Refactored QUnit tests.
Removed vim swap files that were mistakenly committed and modified the .gitignore so that this won't happen again.