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