fix some use strict issues in the documents services