Reduced DOM calls with documentFragment, added small config