Suggested fixes from @pxgrid - removed the stray console.log, changed the names of fstouchend event parameters to not cause a conflict with 'new' reserved word on some platforms.