Added setting to switch on/off javascript patches