fix enumerate and move to inference.js
rm old enumerate file
remove enumerate from index.js