add header attribute to title elements so JS knows what to update