title: the proper way to callback a value and append it nodejs electron
body: <p>hi i have a node module called bonjour, and uses this function to search for devices on the LAN 
  <code>bonjour.find({ type: 'HTTP' }, 
      function (service) {
       console.log('Found an HTTP server:', service)})</code>.
   Plus  i want to retrieve the the result "service" which is an object and  put the data in a paragraph,  all that in electron so any help is welcomed that you very much.</p>