Javascript Dom utils.