move retrieval of body element into function so can be mocked for testing
move retrieval of body element into function so can be mocked for testing

StreetSupport/manchester-charter,StreetSupport/manchester-charter,StreetSupport/manchester-charter