Bug 1003095 - Parameterize helper functions in head_dbg.js;r=past