preprocessing.js using hash