Fixed javascript compile error.