add ajax cookie in building