An example how to share code between the client and the server in js