Arraylist Integer New Array Javascript Methods