Remove trash code from old Ajax implementation