fixed getGithubAPI() function