jshint fixes
drag points with lines
fix jshint warnings