Modified details.html view
Altered filename details.html -> detail.html
Modified vote() function