javascript classes without constructor