Refactoring of GitHub Search API using AngularJS