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
Merged changes
Merge branch 'mr-mig-precache-optimization'
Merged changes made by Alexey Migutsky