move massive script from html files to mudox.js.