Refactor mmd.js
Improve naming
Parse model header