javascript array find first