Reordered requires in js