added basic require/AMD support