javascript array filter get first