Break commits.js into two parts so that the main code can be used without a particular JSON request.