Use mkws.log instead of console.log in the code that sets window.name,