defoult parameters in js code, making adding values optional