Predictry JS API