Javascript sniffer and console logger