Changed ajax method to be "private"