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