Move titles from html back to js.