Clean up ModuleView code according to jshint warnings