Converted to use RequireJS