Add JavaScript to ensure cache updates (fixes #17).