http://stackoverflow.com/questions/2559318/how-to-check-for-undefined-or-null-variable-in-javascript
example:
var option = para || {};
option.color = option.color || “#B0B0B0” ;
option.height = option.height || 1;