Write front-end JavaScript in CommonJS. Convert it into AMD.