code: function executeHalRequest() {
      $('#json_hal_response').html('<img src="assets/spinner.gif"/>');
      api
      .jsonHal()
      .withRequestOptions({ headers: { 'accept': 'application/hal+json' } })
      .follow('first', 'second', 'inside_second')
      .getResource(function(err, resource) {
        if (err) {
          $('#json_hal_response').html(JSON.stringify(err));
          return;
        }
        $('#json_hal_response').html(JSON.stringify(resource, null, 2));
      });
    }
docs: HAL