tried alt ways like insertAdjacentHTMl() to modify DOM. but did not improve perf. included as comments
cleaned up some css