Fixed AMD support for jQuery version