If Variable Contains String Javascript Functions