Added direct DOM lookup for elements, in place of jQuery lookup