fixed javascript loading issue.