Resort to js class managing