*harviewer jquery *move controller to model