A Kirklees child sex offender who was arrested and charged within 48 hours of his offences first being reported has been jailed.