sum of even numbers in array javascript