change order of require in js