Share models between node and browser