Python Check If Variable Contains String Javascript