Remove console log and refactor.
Fix issue with :hover in iOS.