Remove document from anon cover function

jshintrc has browser:true setting

Change-Id: I30acfb63f132473611be9da4edf12c3b6ea42523
Merge "Remove document from anon cover function"