fixed localhost ajax bug
Merge pull request #22 from gvorbeck/defect-localhost-ajax-500

fixed localhost ajax bug