Add check to prevent %Q strings in javascript