Move xml:base to js