Added sync.js for webworker sync.

 On branch server
 Changes to be committed:
   (use "git reset HEAD <file>..." to unstage)

	modified:   index.js
	new file:   sync.js
	new file:   sync.js~