Share Repository.js between client and server.