trying to make window.title working