jshint & jscs & emit and event on resource update