Base on require.js library to implement AMD modules