javascript filter array get first element