x2js type definition

x2js: https://code.google.com/p/x2js/