add probability.js