If label printing is disabled, prints labels in JS console.

Fixes user name specified while printing. Now it is read from config.