adding js support for sorting commits.