Added RequireJS AMD support