Update touch.js

document != window