Different behavior between DEV and PROD

It sounds like your browser is caching the JS. Opening the browser’s Dev Tools and disabling the cache on the network panel is one way to solve it. For other end users, you may need to employ a cache busting technique. This blog post goes over a few options.