Replaced plugin.js with console-polyfill