Disable the backspace key and clean up some common JS
Fix XError template to work without errors in PHP < 5.3