Finished revising videosync.js