removed syncing back and forth with jquery .data
added option to get flat JSON from get_json