Hacking together sorttable.js to behave in the desired manner