New logout.js script for logout page