js scripts for painting json data