True, optional parameter is the way to go. But I'm just starting my javascript career, I have no idea yet how to do it :-)