Added a bit of javascript to show message length