Added JavaScript preferences.