fixed error in location.js model should check for null && .length > 0, rather than ||