refactor(JavaScript): setDefaultPeriod() --> setPeriod(period)
refactor(JavaScript): setDefaultPeriod() --> setPeriod(period)

Rename function and add period parameter, so different periods
can be set.

mradenovic/makespace-tip-calculator,mradenovic/makespace-tip-calculator,mradenovic/makespace-tip-calculator