Fix javascript settings