[development] How can I make Drupal DOM elements accessible within a javascript function without having to do an ajax request to a page?