Python Functions With Optional Parameters In Javascript Regular