fixing grunt.js so it some crashing
fixing karma test