Remove TODO from foundation.js, update javascript docs.
Merge.