Update jquery.tap.js

use closure instead of global var