can now pass team model to js