Update arc.js

Fix useless optimization of code that was rendering arcs not correctly
Merge pull request #1646 from asturur/Fix-bad-optimization-in-arc.js

Update arc.js