Added support for PhantomJS, Zepto and Ember (basically not relying on jQuery-specific functionality)