Replace variables through an AJAX call, which makes them work in the post editor too and allows for more variables to be replaced in the title.