move dict to external js file