rewrite js class table