Minor spacing and comment changes
JSHint: proper use of braces, even for one line (see http://make.wordpress.org/core/handbook/coding-standards/javascript/)
Document unknown functions as MSFT specific.
Remove several unused variables.
JSHint: move functions for touch support out of if/else statement