track changes with javascript