Simple JavaScript Method Overloading