Fixed ajax error when creating folders in Chrome