fdo#7249 - Fix syntax for optional function params

Only FireFox currently supports the PHP/Python/etc... syntax for
referencing optional javascript function arguments:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/default_parameters

https://bugs.freedesktop.org/show_bug.cgi?id=72497