simplifiying demo
fixing js scoping issues
exploring changed sync process
making more safe for synchronzation