Debugged javascript issues.