Add an ajax method