Retrieving elements in DOM by id, tags, and class