settings javascript fix