static/busybird.js: import some functions from the old main.js.