Create Array With Length Javascript Method Object