#908 attach ajax event to document element