Create displaymessage.js

We call this code, so we should have a local copy of it in the repo to be able to change and fix things.