Fix javascript issues.