Fixing JS file