Added response headers to handle cross server POSTS.  Also future proofed for jQuery use.