The code element does not preserve whitespace and line-breaks.
To fix this, you must wrap the code in a pre element:
var person = { firstName:"John", lastName:"Doe", age:50, eyeColor:"blue" }