commenting the debugging console.log statements; not erasing them yet as I fear I may need them still.

Note that console.log was used to debug the focus issues as breakpointing into the debugger of course blows away any page focus state, so you're stuck with the Old Skool way of doing your debugging: printf() FTW.