corrected a js issue.