Minor fixes for MassModel.js, see #88