Source code: mg_box.js