Added X11 mode to core.js