step callback now depending on page DOM being ready vs. loaded