A simple and lightweight solution for retrieving DOM elements