JS API following