Fix: js errors on portfolio detail pages