update remove js postmessage handler