How to access node field content in a custom module?
Assuming you mean Drupal 7, just off the top of my head, implement  something like hook_node_view() and attach the Javascript via the #attached element. I am frequently silly in my hook options, so someone may have a better one to suggest.