added AMD support, dropped support for zepto, passing in 'jQuery' instead of 'window.jQuery' which was causing issues