Replaced == with .length
Merge pull request #120 from krulwich/bug/jshint-warning-equals

Replace == test with .length in controller.js to avoid jshint warning