Fixed id loss bug after sort

`id`s are now inserted into the DOM as `data-id` attributes rather than being set with `.data()`
Merge branch 'gh-pages' of https://github.com/Nightfirecat/fitting into gh-pages