JS syntax fixes for default parameters.