CRM-13368 - Fixed js code to work same in all browsers

----------------------------------------
* CRM-13368: "New Relationship" does not support "-create new contact-" in Internet Explorer
  http://issues.civicrm.org/jira/browse/CRM-13368
changed the code to fix Js error in FF
Merge pull request #1652 from vivekarora/CRM-13368

CRM-13368 - Fixed js code to work same in all browsers