AMD support added, also don't leak jsxml into the global namespace when ...

I'm using jsxml in a webproject in which we're using RequireJS for AMD. I've added support for this, and also made sure jsxml doesn't leak into to global namespace.