fix script charset logic bug
add touchcancel event support