Changing title, making links open in new tab via js