Typescript Find Element In Array Javascript Clonenode Is Not A Function