Ajax to send code should be POST not GET