update mid.js demo