why is js not working in prod