Fixed js error and fixed the page location when the link is clicked.

The table row for chart just show when the link is clicked.