fixed issues with apiName values with apostrophes

jQuery don't recognize selector's with symbol ', we shouldescape this special character too