An example of an isomorphic javascript pattern inspired by https://github.com/spikebrehm/isomorphic-tutorial/