map.js: use fai triangle rendering code from XCSoar

Which will support rendering of turn areas for large triangles, when it's fixed...