Pure Javascript Typing Slider