You're leaking globals here.  Should be `var _id = "";`