Minor cleanups in the contents API.

Noticed while poking around with a linter enabled.
Merge pull request #7138 from quantopian/js-lint-errors

Minor cleanups in the contents API.