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