javascript classes multiple constructors