Fixed JavaScript page load issue.