Reverted index.html back to version where message.js and message_controller.js were not included as these seemed to be causing problems.