Python Check If Any Substring Javascript