How to Code Linear Search Node js