Update line.class.js

now even lines are exported correctly, grouped or ungrouped