Implement HTMLTitleElement.text (closes #3025)

Fix seems identical to fix implemented in #3095, with `Script` replaced with `Title`. Seems like there's a better way to accomplish this without having nearly identical code in two places (maybe more, depending on other `.text` issues). Just adding this for reference.