Update detail.html

javascript methods added