adding error handler on JS
adding error handler on JS

Signed-off-by: Siddhartha Gupta <564e5defe08207ca425d3bfa7c6ed15919a48b6f@gmail.com>

StealthWombat/How-to-fork-an-Elk,StealthWombat/How-to-fork-an-Elk,StealthWombat/How-to-fork-an-Elk,Ant59/Elkarte,emanuele45/Dialogo,joshuaadickerson/Elkarte2,emanuele45/Dialogo,joshuaadickerson/Elkarte2,nwsw/Elkarte,elkarte/Elkarte,Spuds/Elkarte,wizardaf/Elkarte,nwsw/Elkarte,Spuds/Elkarte,interlab/Elkarte,emanuele45/Dialogo,elkarte/Elkarte,joshuaadickerson/Elkarte2,interlab/Elkarte,wizardaf/Elkarte,Ant59/Elkarte,nwsw/Elkarte,Ant59/Elkarte,elkarte/Elkarte,StealthWombat/How-to-fork-an-Elk,wizardaf/Elkarte,Spuds/Elkarte,joshuaadickerson/Elkarte2,wizardaf/Elkarte,interlab/Elkarte