Helper utilities for writing Chrome extensions