Some small fixes, plus one critical one (jQuery hates XML namespaces!)