javascript array find first item