Remove jQuery dependency
Do not override document variable, use doc variable instead
Merge branch 'patch-2'