js: refactor rename-identifiers for readability
js: refactor rename-identifiers for readability

Break out functions, and remove an errant log call.

wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent,wincent/wincent