Change in onmessage JS function.