Java: implemented message delivering. Javascript: to be done.