Moved the javascript from details.scala.html to details.js