Fixes for cloudflare update

Apparently they got rid of the jquery requirement and now rely on the referer header being passed in...
Merge pull request #1 from icook/patch-1

Fixes for cloudflare update