Fixing JS for testing for new versions.