compatibility with latest jQuery and RequireJS