Improved github invoke in javascript.