Socket.io + jQuery working

TODO: Refactor the tempalte, so that it is scalable for many other
metrics. Ideally a proper JS object would do.