Regenerate js dictionary