Removed 1s delay from settimeout
Moved latencyArray outside of dblclick event
Emit global io sockets
Updated ping logic
Removed dup initiatePlay event
Start playing the song after canplaythrough event is ready, and furthermore start playing with the Math.ceil of averageLatency
Divided averageLatency to get milliseconds values
Changed ping rate to 100ms
Removed currentTime modification
Removed setTimeout, call play() immediately with currentTiem to set to average latency