added custom script that saves phrase frequencies in text

miner.js and test.js aren't working right now