Update to support RequireJS or another AMD library