replaced javascript default parameters with other construct to work in non-firefox-environments