Update ds.js

add revAppendFunc, which is then used to reverse the order of the losses column