swapped out node-unit for karma
fixed bug found by jshint