Simple middleware for Slim PHP Framework, for prerendering of JS applications using prerender.io