Fixed overriding caps in location-specs.js to fix failure in strict mode. See #2719