FIX: Title changes didn't always apply. Cleaned up some ugly JS.