revert message.js to standard