Implemented server side optimistic loop
Merge pull request #2 from andreabalducci/jsloop

Implemented server side optimistic loop