made first attempt to move all the dom access and creating jquery html in memory x n