update js and x-dom ameliorations developped from udac project