Stefan Goesnners XML to JSON JS function