Placed commit-counter into function; successful calls from browser console