main js access model data