Add JS to document titles