look at begin of programming ajax client