Added reconnect feature on disconnect

Right now this is a window.location.reload(), in the future this should
be changed to a nodejs reconnect