ADD: json_script to interpret the javascript for calculating the siganture