simple DOM lookup utility function