Fix jshint errors in undo.js and raphael-rect.js