Remove dependency on default parameters in JS

Apparently it's only supported by Firefox, source:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/default_parameters

This issue was brought up in #3.