put the whole model into one js object