1. A method of a client device comprising: constraining an executable environment in a security sandbox; executing a sandboxed application in the constrained executable environment; through the sandboxed application, associating with a networked media device by way of a sandbox reachable service executing on the networked media device using a communication provided by the networked media device; applying an automatic content recognition algorithm to determine a content identifier of an audio-visual data rendered through the sandboxed application; associating the content identifier with an advertisement data based on a semantic correlation between a metadata of the advertisement data provided by a content provider and the content identifier; targeting the advertisement data at the networked media device based on the association of the content identifier with the advertisement data and the association between the client device and the networked media device; and executing, through the sandboxed application, arbitrary cross-site scripts to improve targeting of the advertisement data based on embedding a script in at least one of the client device, a supply-side platform, and a data provider integrated with the supply side platform.