update require.js
Introduce karma/qunit for JS unit testing