using github api to refract search.js