Create gist on github / Better treating ajax requests