JS API for ngsync