Javascript Differential Synchronization