bug 1001466 - removed deprecated onMessage

Here's my first try. There was no diff in the test results between this patch and the original .js file, which seems to me like a good thing. But it seemed a little too simple of a fix that I'm worried I missed something. Anyhoo, I hope this works!