moved mdv.js to top-level