Flacco throws three touchdown passes, Ravens beat Browns