Improved JS messaging.