removed var data and var model, model is now called tobserver and in stat of data the window object is used.