Create core.js with some utility functions from xorg.js.