HTML5 canvas synchronisation, part 1

HTML5 canvas synchronisation, part 1