add jshint document write error