fix mistake in tagcloud.js

the `result` returned include a variale root, which is not refered in
`tagcloud.js`.
so the after require(`lodash`), config and root should be set.