CRM-12463, formRule js fixes