updated old js