Update detail.js