XML to JavaScript object converter based on libxmljs