You are missing the semi-colon here at the end of the window onclick function…
}; // missing semi colon
(function(){
document.getElementById(“close”).onclick = function(){hide_notify();};
Your code will work now assuming the html exists that you are referencing.