Added closeAlert() function to javascript.js to close alert on every pages