Avoid using jQuery's clone() method

Avoiding the use of jQuery's clone() and empty() methods helps to decrease the
amount of memory used by the project. The less garbage present on the the
heap, the fewer garbage collection pauses the application will enounter, which
will help make scrolling smoother and the application more responsive.