change js logic to deal with reports of 0