Look at the line where you're specifying the update to the extent. You have a number that I'm sure must represent your spatialReference, but you can't just use the number. You need properly formed spatialReference, like: