ECMAScript 3 to 6 compatible Class definition