api js change