CR changes: execute $.msg() in config
CR changes: added jsdoc and changed definition of mapData object