Fix some js issue.