If you are using an isomorphic router pattern, like the Express with Nighthawk, you can use this middleware on both sides and it will handle the data loading for you. Check out the example for more details on this pattern.
$ npm install --save shared-context
// index.jsvar app = ;var sharedContext = ;app;app;
<!-- other stuff in here -->
// browser.jsvar app = ;var sharedContext = ;app;app;