work in progress of rewriting thymol to use jQuery to it full extend