main.js : set default values for Number when it's NaN;