Fixes to eigenvector.js