updated js file to include touches fix for #5