title: How can i access client browser DOM from express?
body: <p>I need to access a video player object from the client browser DOM, this video player is initialized by videojs so i need the whole javascript object. The server processes the html that will appear on the page.</p>
  
  <p>I've tried ajax, but then i realized you can only use ajax on the client browser.</p>
  
  <pre><code>.container
    .wrapper
      video#vid1.video-js.vjs-default-skin(style='width:100%;height:auto; position: relative;' controls='')
        source(src=videoSource type='video/mp4')
  script.
    player = videojs('vid1', {
    controls: true,
    posterImage: false,
    textTrackDisplay: false,
    loadingSpinner: false,
    playPause: true,
    controlBar: {
    fullscreenToggle: false,
    progressControl: false,
    remainingTimeDisplay: false
    }
    });
    player.overlay({
    content: '&lt;strong&gt;Default overlay content&lt;/strong&gt;',
    overlays: [{
    align: "top",
    content: '!{htmlContent}',
    start: 'play',
    end: 'pause'
    }]
    });
    player.ready(function () {
    this.on('timeupdate', function () {
    console.log(this.currentTime());
    })
    })
  </code></pre>
  
  <p>I would like the client to receive a new definition to player.overlays given by the server</p>