script.js - detects one character at a time.