Fix the javascript for messages for the time being