Select link, go to gist button works. Cleaned up variables