Moved drag and drop code out of cohorts.js.
Added ability to change percentage format.