title: How can you retrieve a pages source code (after javascript has ran) using PHP?
body: <p>On my page, javascript adds a lot of classes on page load (depending on the page).
  How can I wait til javascript has added those classes, then get the HTML using either Javascript or PHP from a different file?</p>