added js post to git function