clean up stack.js
fix ids in ballot measures