Moved JavaScript functions getDetail() and replaceRegionContents() in edit pages to main.scala.html.