express.js middleware for rendering single-page apps on server using phantom.js