updating to fit to requireJS