Cleaned up lineview.js