let's use the JS API