Cross-origin resource sharing example with twisted and jquery