Finished cart.js tests.

Moved linter configuration to .jshintrc for interoperability with other
tools.