chore(frame-grab.js) code cleanup