add "use strict" declarations, cleanup jshint warnings