Ajax handler not working because of headers..