converted to requireJS module