small performance changes

swapped some ids for classes
added cloneNode usage for added performance