How should I tackle this? It breaks my JS code. 