Use Karma for testing
Fix r.js build and add tests for it
r.js tests: remove testing iframe when done
Remove unnecessary semicolon