Fix normalize parameters

IMHO you shouldn't require a param that can be undefined. I think we can safely use the semantics meaning of `undefined` in JS which is, as @tarmolov mentioned, a variable that is not defined. It is the same as we assume that the first index of a 0-based array is 0. Just passing `undefined` value as a param is one of those because-JS-can-do-this things.