added a new pre.js file

the old predictions.js is not used anymore