Fix jshint errors in office scenario