cleaned compareview.js