Wolves survive scare against rival Rams