You are looking at the setTimeout( expression, timeout );
where you need to give it an expression
to run after the timeout
in milliseconds that you allocate to it. then you would do element.style.display="none"
ex:
setTimeout( function(){element.style.display="none"}, 4000 );