update latedef for jshint