Updated sample to use JS lib 1.1.
Updated sync code.