Implement weather pattern for search results

The style doesn't bother me. I prefer if statements that check if some is positive where possible.

An alternative would be;

```javascript
if (typeof self.locationName === 'string' && self.locationName > 0) {
  self.input.val(self.locationName);
}
```
...but you probably don't need to be so strict.