Examples for the new JS API