js function/method overloading