fix dom:loaded event in javascript.vm and dataeditors.js of xwiki