Cleans up gscope snippet for js-mode.