Simple web sockets noticeboard in sinatra and javascript