diff --git a/index.html b/index.html
index b3625db..eb3b89e 100644
--- a/index.html
+++ b/index.html
@@ -32,9 +32,14 @@
function updateText()
{
- el.innerHTML = el.innerHTML+words[word_counter][character_counter++];
+ var character = words[word_counter][character_counter++];
+ if (character == " ") {
+ character = " ";
+ }
+ el.innerHTML += character;
- if(character_counter == words[word_counter].length)
+
+ if(character_counter > words[word_counter].length)
{
word_counter++; //choose a different word
character_counter = 0; //start over with the first character of the word
@@ -52,4 +57,4 @@