Several jshint error fixes. Fix issues with upgrade of angularjs-nvd3-directives