added exception to js errors