Add title in Scala, undo JS changes