CRM-15684: onbehalf profile js break fixes

----------------------------------------
* CRM-15684: Onbehalf fails to set organizations information
  https://issues.civicrm.org/jira/browse/CRM-15684
Merge pull request #4659 from kurund/CRM-15684

CRM-15684: onbehalf profile js break fixes