Typing Game using JavaScript