Ah it worked for the server so I assumed this would work for the client too (plus when I went to test it the XML DOCTYPE error started showing it's head and I forgot to come back to it after fixing that). Looking into it now.