ajax abstraction for libredio func