Lions survive a scare, come back to beat Browns