Moved send function from ipc.js to demo.js

There isn't much code in this demo, so I think it is not that helpful to
have a separate file with only the send function.