Using jquery to load the new DOM elements instead of fetching the whole
Jinga Template.
Refactoring the code before implementing channeling.