Update and rename detail.js to details.js