A JavaScript library for probability sampling