Simplify way points to improve rendering performance

It's a slightly modified version of the simplify.js library (derived from a leaflet library).
I can't tell the difference between the non-simplified and the simplified map, but the rendering performance is better.