Added Gelbooru and slightly modified (failsafe) doAjaxRequest