added comments to m2j.js