compile mori.js