Updated optional parameter default value assignment.

The new format/style is according to the JSLint standard. It's a much shorter and nicer way of assigning values that have not been set.