refactored to server side app instead of chromeapp, using socket.io and express