Cleanup var declarations in lib/pjs.js