Trying to fix this ajax 301 error.