Sample testing with karma and qunit
Fix some complaints from jshint