Cloned from https://bitbucket.org/miroslavmagda/favico.js/overview