Update hashFunction.js

Added comments