Added errorception script for js error