updated JS Dom1