client: remove dependency on $document
client: remove dependency on $document

Part of an effort to remove dependency on jQuery

$ instances left: 551

emersion/groovebasin,neynah/groovebasin,CalebMorris/groovebasin,sammcj/groovebasin,melissanoelle/groovebasin,andrewrk/groovebasin,neynah/groovebasin,dwrensha/groovebasin,emersion/groovebasin,CalebMorris/groovebasin,sammcj/groovebasin,gorlug/groovebasin,gorlug/groovebasin,emersion/groovebasin,Qbuer/groovebasin,gorlug/groovebasin,melissanoelle/groovebasin,Qbuer/groovebasin,andrewrk/groovebasin,dwrensha/groovebasin,andrewrk/groovebasin,neynah/groovebasin,CalebMorris/groovebasin,sammcj/groovebasin,melissanoelle/groovebasin,dwrensha/groovebasin,Qbuer/groovebasin,dwrensha/groovebasin