Fixing JS bug introduced with asset changes