Create javascript functions with optional, default, grouped and named parameters.