Fixed variable leak

`dom` isn't used anywhere else, so you _probably_ want to use a `var` statement.