Moving voting,js to fix error