[CHORE] Refactor all objects into require/amd modules