Your script language is not correct. If you use formCalc, you have to select formcalc from the language drop down list at the top right the script editor. if you use javascript, then you have so select javascript from the drop down. This has to be done for each field with code in it. That will sort out your problem.