trying to post the new coordinates via ajax, still 500 internal server error