How to get the content of a node with Devel Path?
If your main goal is to expose a piece of data to JavaScript, you can use drupal_add_js() to add a "setting". Here is the example from api.drupal.org:

drupal_add_js(array('myModule' =&gt; array('key' =&gt; 'value')), 'setting');


(https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_add_js/7.x)

That then becomes available in the frontend in the Javascript variable: Drupal.settings.myModule.key.

Now, the question is WHERE do you put that call to drupal_add_js? That depends on exactly what data you want to expose, and when you want to expose it, but in general you would create a custom module and implement a Drupal hook that runs drupal_add_js at a specific point in the Drupal pageload life cycle.

If, as it sounds from your question, you want to add node information to a node's "view" page (ie: on the /node/1 path), one option is to implement hook_node_view() in a module called mymodule like so:

/**
 * Implements hook_node_view().
 */
function mymodule_node_view($node, $view_mode, $langcode) {

  // If the node contains the field we want, add it to a JS setting.
  if (!empty($node-&gt;location['postal_code'])) {
    drupal_add_js(array('mymodule' =&gt; array('postal_code' =&gt; $node-&gt;location['postal_code'])), 'setting');
  }
}


Here is the documentation for that hook: https://api.drupal.org/api/drupal/modules%21node%21node.api.php/function/hook_node_view/7.x

That's just one way to do it. There are lots of other hooks where this could be done, again: depending on when and where you want it to.