Updates to compare.js