adds testing system with requirejs
fix jshint warnings