updated index.html to display online status using heartbeat