Enabling callback for sockets and removing unused chart html