move the locationFactory to app/factories/locations.js