Fix to be able to work with jquery 1.9.1

"Cannot call method 'createDocumentFragment' of undefined" was the error and the fix was based on this explanation http://stackoverflow.com/questions/16785227/jquery-prepend-cannot-call-method-createdocumentfragment-of-null.