Remove use of es5 multi-line in tests
Fix iError not defined linting error

Ping #1495, #1827
Remove use of deperecated QUnit.raises function
Initial Karma setup