Credits to adryd325/oneko.js.