Create dictFunc.js

Javascript version