Generates gists via AJAX