Update script.js

better recognition for keyclicks.