Fixing JS reload