JavaScript port of HEALPix