Fix javascript issue to make compatible with Redmine 2.3.