Chat inside browser with java back-end