Consistent ajax usage