Put events in doc ready.