Use httparty to pull the json from Mobile Detect's github repo.
Refactor.