The problem has been fixed by putting one more condition in for loop in html file where the value extracted from the text file should be non zero. The updated code path is:http://jsfiddle.net/fz9580gd/22/