functions.js: testing preventDefault. Then sleep.