phonertc.js: extract video element DOM lookups into function