First functioning auto-player. Still needs configurability and to accept direct input on the textarea.