Remove jQuery from code.

Makes DOM operations run ~10% faster.
Make sort faster with presort.

Code speed is ~30% faster than initial.
Change appendAll function