moved timeout javascript to script.js