Migrate to RequireJS