javascript array filter find first