Fixes jQuery checks in environments without DOM
Merge pull request #174 from tonylukasavage/jQuery_check

Fixes jQuery checks in environments without DOM