Don't use $this in static function
Only parse response as json if there actually is a response, otherwise, jquery 1.9
will complain
remove use of deprecated function
fix problem where mgd1 pages were not properly recognized