Better js -> URL map to reduce unneeded execution