Fixing javascript to allow settings changes while reading, updating stat...

...e with more options