json and javascript for control