Refactor so all of the logic involved in a view (or nearly all of it) is
contained in that view's js file.