pull-request fixes

replaced console.log with kWidget.log and changed the initial value of
playerId to null (from '<!undefined!>')