quick cleanup in the morning

renamed sort to tools, and moved the shims into Jiesa global object.
Shims like previousElementSibling and firstElementChild