[revamp] lovely micro require/define factories when require.js not present for library module creation