Refactored search to directive
changed name from getWeather => getLocation