Insert Item Into Array Javascript Length Of Text