Fix javascript problem