fixed spelling errors in vote.js and added comments to tip.js