Add more comments to lines.js