added support for AMD and Zepto