Update js_ykarita.js

fixed counting and added sorting in age graph.