Revert "Bug 1008199 - Factor out unneeded dependencies in functional.js"

This reverts commit a7604862ce5b68c8c710bb26f37f0d2e7ba6312a.
Bug 1008199 - Factor out unneeded dependencies in functional.js