JSMessages: improve docs
modil.js: add more details to exception thrown (BugId:97306)