First refactoring. Pulling out a DOM call into the view. Adding a test