Create a single method for getting DOM content