Replace awk with javascript

Fix bug when getting the github user