added JavaScript error notifing system in the console