I am trying to make it so that this code I wrote doesn\'t rely on having to access the dom in order to use its contents. I had already accessed the dom once before using jquery,