Cannot call method 'createDocumentFragment' of undefined when using jquery 1.9.1 fix