var data= {"face_1":0,"face_2":0,"face_3":0,"face_4":2,"face_5":0,"face_6":0,"face_7":0,"face_8":0};var max_data= 2;parseData('mood',data,max_data);