checking in takeaway.js file which contains vote function