added relational model to js