Add require.js conversion of define function.