Hmm, your code seems to give some correct information maybe? It's not the same as the one PeakD and Hive.Blog give tho.
I just voted and it was 0.16, and I just requested the info from your code and the console log result was 0.1979
Vote value: 0.1979061971029384
I also had to modify from console.info to console.log
Anyway, I'm unsure why this inaccuracy happens! PeakD's estimate on my vote size is 0.157 | 0.16