Example of slow typing in JavaScript