Modified JavaScript to avoid conflicts with some themes.