Added title changing and made it work with the history (at least in chrome).