Fix javascript issue