make require.modules as function
merge