Update line.class.js

Check how this version could behave in general rendering.