transform node module into amd