Added basics of JS file to search for trees