Your code is not supposed to work, because Timer()
will never be called since you have your timeout inside the function. Move it outside and it will work.
function Timer(){
document.getElementById('buybtn').style.visibility = "visible";
}
setTimeout(Timer,3000);