corrected the Deferred defn. for gdocs.js