Add AMD define wrapper for require.js.