[JS] Fix bug in web push flows