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