build as mazacore.js