slightly better jquery fix