use this instead of window and check for jquery
switch from typeof to defined?
Merge pull request #69 from tadeuzagallo/browser-v8-compatible

use this instead of window and check for jquery