Add JS snippets for getting elements by ID, class name, and tag name.