fun with javascript array