Began preparations for ajax