modified app js to deal with post requests from github