Fixed redundant ctor name at end of class declaration  in produced javascript