Fix pager jQuery plugin (and move error reporting to config.php)