Python Check If Variable Contains Javascript