Slices of Pi for Javascript