Use require.js for sequence calls code