almost completed assignment with jquerry and ajax