Uncaught SyntaxError: Unexpected token :
I have just solved the problem. There was something causing problems with a standard Request call, so this is the code I used instead: If anyone knows why the standard Request object was giving me problems I would love to know.