parse JSON and rename on-click function