viewdetails.js