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