adding grunt-complexity, jshint, and fixing code to meet requirements