playing with other javascript array methods