get the locations from the reasoner
jshint improvements
use underscore chaining