modified javascript array blog