Fixes for jshint errors in pivot.js