Moving extension code to x-display-order.js