some fixes for really (no, like REALLY) old jQuery stuff