Added support for jQuery as a `require` module

Currently Ember can only be used if `jQuery` is available on the `window` object. With AMD, ES6 module transpiled modules etc. it won't necessarily be there.

I changed it to use the same logic as https://github.com/emberjs/ember.js/blob/master/packages/ember-handlebars-compiler/lib/main.js#L13-L16