Fix controls for lines without caps
Fix controls for scaled lines
Fix controls for lines while scaling
Brace style and JSHint
Merge pull request #1476 from twffy/upstream

Fix positioning of controls for lines