title: suitescript 2.0 fail to evaluate
body: <p>I am a novice suitescript writer and cannot figure out what I am doing wrong.  I am trying to load a very simple suitescript 2.0 script to calculate values in a custom table.  I can upload the script file just fine but when I create the script record, I get the following error: Fail to evaluate script: <code>{"type":"error.SuiteScriptModuleLoaderError","name":"UNEXPECTED_ERROR","message":"missing : after property id (SS_SCRIPT_FOR_METADATA#22)","stack":[]}</code></p>
  
  <p>Here is the code</p>
  
  <pre><code>/**
   *@NApiVersion 2.x
   *@NScriptType ClientScript
   */
  define(['N/currentRecord'],
      function fieldChanged(context) {
          var fieldName=context.currentRecord.fieldID;
      //return if not one of these fields
      if (fieldName!=='custrecord_am_ehir_emp_prem_percent' &amp;&amp;
      fieldName!=='custrecord_am_ehir_dep_prem_percent' &amp;&amp;
              fieldName!=='custrecord_am_ehir_total_month_prem') 
              return false;
          else
              //get premium and percent values
          var totalPremium=currentRecord.getValue(
              {fieldID:'custrecord_am_ehir_total_month_prem'
              });
          var employeeOnlyPremium=currentRecord.getValue(
              {fieldID:'custrecord_am_ehir_emp_only_prem'
              });
          var employeePercent=currentRecord.getValue(
              {fieldID:'custrecord_am_ehir_emp_prem_percent'
              });
          var dependentPercent=currentRecord.getValue(
              {fieldID:'custrecord_am_ehir_dep_prem_percent'
              });
          var employeePremium=totalPremium*employeePercent;
          var dependentPremium=(to1talPremium-employeeOnlyPremium)*dependentPercent;
          var companyPremium=totalPremium-employeePremium-dependentPremium;
          //set field values
          currentRecord.setValue(
              {fieldID:'custrecord_am_ehir_emp_month_prem',employeePremium
              });
          currentRecord.setValue(
              {fieldID:'custrecord_am_ehir_dep_month_prem',dependentPremium
              });
          currentRecord.setValue(
              {fieldID:'custrecord_am_ehir_co_month_prem',companyPremium
              });
          return {fieldChanged:fieldChanged};
      }
  );
  </code></pre>