Updating ajax object, and changing object name to http