define snippet for require.js