New Array With Length Javascript Method