Loosened jshint options.
Refactored view creation logic into View class.