Upgrade to AMD support using RequireJS