Patch to settings javascript.