Ensure injected JavaScripts are only executed once