Add the x3dom related code.