Expose display mode to CSS+JS (closes #273, #155)