refactoring (add dictionary.js)