js: fetch triangle