Updated to use createDocumentFragment

Speed + readability improvement.