#378 Optimize and refactor JQuery

Create variables for jQuery objects instead of searching the DOM tree over and over again for the same DOM Element.
Get objects by classname from subtree elements selected by ID instead from root Document.
why are we using attr instead of data ?