Fixing json ajax request