XSL transform using javascript