Added if statement to intercom JS