add require.js amd support