added js file with voting funcionality