Update arc.js

Divided function, maybe optimized a bit.
More possibile to hit cache, anyway very difficult in any case,
i don't even know if those small calculation requires caching, considering that we do one time per path at init and not
at rendering.