Common API JS minor fix for persistent callbacks