Fixes for cloudflare update

Apparently they got rid of the jquery requirement and now rely on the referer header being passed in...