Several bugfixes

The XML parser was parsing the <javascript> and <utopiascript> nodes as,
well, nodes. As such, it was removing them, which is non-optimal.