#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.
this input variable will be lose once we leave this function