Fix JS errors when console[log|warn|error] are not all defined
Fix JS errors when console[log|warn|error] are not all defined

rachellaserzhao/tbone,tillberg/tbone,rachellaserzhao/tbone,tillberg/tbone,appneta/tbone,appneta/tbone